package com.uni.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.uni.mapper.AttachmentMapper;
import com.uni.common.entity.Attachment;

/**
 * 
 * @author yanzheng_Yu
 *
 */
@Service
public class AttachmentService {
	
	@Autowired
	private AttachmentMapper attachmentMapper;

	public int insert(Attachment attachment) {
		return attachmentMapper.insert(attachment);
	}

	public Attachment findByFileId(String encodeFilename) {
		return attachmentMapper.findByFileId(encodeFilename);
	}

}
